package com.isoft.controller.sys;

import com.isoft.bean.Result;
import com.isoft.entity.PageBean;
import com.isoft.entity.UrgeBoarding;
import com.isoft.service.impl.UrgeBoardingService;
import com.isoft.util.ReturnsBoardingData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@Slf4j
@CrossOrigin
@RestController
@RequestMapping("/UrgeBoarding")
public class UrgeBoardingController {

    @Autowired
    UrgeBoardingService urgeBoardingService;
//催促登机消息
    @GetMapping("/getUrgeBoarding")
        public Result page(@RequestParam(defaultValue = "1") Integer page ,
                @RequestParam(defaultValue = "10") Integer pageSize)
        {
            log.info("分页查询 ：{},{}" , page , pageSize);
            PageBean pageBean = urgeBoardingService.selectUrgeBoarding(page , pageSize);
            return Result.success(pageBean);
        }

}
